﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace nelech.Models.ContactModel
{
    [MetadataType(typeof(ContactMetadata))]
    public class Contact
    {
        public string name { get; set; }
        public string email { get; set; }
        public int subject { get; set; }
        public string description { get; set; }
        public class ContactMetadata
        {

            [Required(ErrorMessage = "שם נדרש")]
            [DisplayName("name")]
            [StringLength(160)]
            public object name { get; set; }

            [Required(ErrorMessage = "חובה למלא ")]
            [DisplayName("email")]
            [StringLength(160)]
            public object email { get; set; }

            [Required(ErrorMessage = "חובה למלא תיאור")]
            [DisplayName("description")]
            [StringLength(200)]
            public object description { get; set; }



        }
    }
}
